package com.scoy.honeymei.adapter;

import android.content.Context;
import android.view.LayoutInflater;
import android.view.ViewGroup;

import androidx.annotation.NonNull;
import androidx.recyclerview.widget.RecyclerView;

import com.scoy.honeymei.adapter.tabadapter.OyAdapter;
import com.scoy.honeymei.bean.GoodsBean;
import com.scoy.honeymei.databinding.ItemMallMain2Binding;
import com.scoy.honeymei.databinding.ItemMallMainBinding;

import org.jetbrains.annotations.NotNull;

public class MallMain2Adapter extends OyAdapter<GoodsBean> {


    public MallMain2Adapter(Context context) {
        super(context);
    }

    @NonNull
    @NotNull
    @Override
    public RecyclerView.ViewHolder onCreateViewHolder(@NonNull @NotNull ViewGroup parent, int viewType) {
        ItemMallMain2Binding binding = ItemMallMain2Binding.inflate(LayoutInflater.from(parent.getContext()), parent, false);
        return new MallMainsHolder(binding);
    }

    @Override
    public void onBindViewHolder(@NonNull @NotNull RecyclerView.ViewHolder holder, int position) {
        MallMainsHolder mHolder = (MallMainsHolder) holder;
        GoodsBean mBean = datalist.get(position);


    }

    static
    class MallMainsHolder extends RecyclerView.ViewHolder {
        private ItemMallMain2Binding binding;

        MallMainsHolder(ItemMallMain2Binding binding) {
            super(binding.getRoot());
            this.binding = binding;
        }
    }
}
